package com.nhim.core.io;

import java.io.File;

public class PathHelper {

	public static String combine(String[] paths) {
		if (paths != null && paths.length > 0) {
			try {
				File file = new File(paths[0]);
				for (int i = 1; i < paths.length; i++) {
					file = new File(file, paths[i]);
				}
				return file.getPath();
			} catch (Exception ex) {
				// swallowed
			}
		}
		return null;

	}

}
